<?php /* Smarty version Smarty3-SVN$Rev: 3286 $, created on 2012-02-17 10:07:32
         compiled from "D:\www\beimuaihui/views/admin\header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:84894f3db6648b5572-22457078%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '303ade1641356a0210e93f50ee165e0bf9fb2e72' => 
    array (
      0 => 'D:\\www\\beimuaihui/views/admin\\header.tpl',
      1 => 1323245198,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '84894f3db6648b5572-22457078',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/resources/css/ext-all.css" />


<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('CSS')->value;?>
main.css" />

<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/ux/css/ux-all.css" />
<!---->
<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('JS')->value;?>
min/index.php?f=<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/ext-all.js&20111117"></script>
<script type="text/javascript">
        var LANG=LANG?LANG:{};
 	Ext.BLANK_IMAGE_URL = '<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/s.gif';
</script>       
<!--

<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/ux/css/ext3-compat.css" />
<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/ux/ext3-core-compat.js">
        </script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/ux/ext3-compat.js">
        </script>
 script from ext3-compat.js-->
<script type="text/javascript">
/*
(function(){
	function deprecate(){ }
	if (Ext.form.CheckboxGroup) {
        var cbgSetValue = Ext.form.CheckboxGroup.prototype.setValue;
    
        Ext.apply(Ext.form.CheckboxGroup.prototype, {
    
            initComponent: Ext.Function.createInterceptor(Ext.form.CheckboxGroup.prototype.initComponent, function() {
                var me = this,
                    items = me.items;
    
                // Handle the old structure where the 'items' could be a set of column configs
                if (items && items[0] && 'columnWidth' in items[0] && me.layout !== 'column') {
                    deprecate({ pkg:'Ext.form.CheckboxGroup', type:'config',
                        msg:'CheckboxGroup and RadioGroup no longer accept implicit column containers in the "items" ' +
                            'config. If you wish to use a custom column arrangement, set layout:"column" and create ' +
                            'a standard items structure with container xtypes.'});
                    me.layout = 'column';
                    Ext.Array.forEach(items, function(column) {
                        column.xtype = 'container';
                        column.defaultType = me.defaultType;
                    });
                }
            }),
            getValue:function(){
            		var values = {};
			        this.eachBox(function(cb) {
			            var name = cb.getName(),
			                inputValue = cb.inputValue,
			                bucket;
			            if (cb.getValue()) {
			                if (name in values) {
			                    bucket = values[name];
			                    if (!Ext.isArray(bucket)) {
			                        bucket = values[name] = [bucket];
			                    }
			                    bucket.push(inputValue);
			                } else {
			                    values[name] = inputValue;
			                }
			            }
			        });
			        if(Ext.isArray( values[name])){
			        	values[name]=values[name].join(',');
			        }
			        console.info(values);
			        return values;
        
		        
		   },
            setValue: function(id, value) {
                var me = this,
                    f;
                if (arguments.length === 1) {
                    value = id;
                    if (Ext.isObject(value)) {
                        cbgSetValue.call(me, value);
                    }
                    if (Ext.isString(value)) {
                        deprecate({ pkg:'Ext.form.CheckboxGroup', member:'setValue', 
                            msg:'The setValue method no longer accepts a String argument. Use the new Object form instead.'});
                            
                        me.setValueForItem(value);
                    }
                    else if (Ext.isArray(value)) {
                        deprecate({ pkg:'Ext.form.CheckboxGroup', member:'setValue', 
                            msg:'The setValue method no longer accepts an Array argument. Use the new Object form instead.'});
                            
                        me.batchChanges(function() {
                            Ext.each(value, function(val, idx){
                                if (Ext.isObject(val) && val.setValue) { // array of checkbox components to be checked
                                    val.setValue(true);
                                }
                                else if (Ext.isString(val)) {
                                    f = me.getBox(val);
                                    if (f) {
                                        f.setValue(true);
                                    }
                                }
                                else { // an array of boolean values
                                    var item = me.getBoxes()[idx];
                                    if (item) {
                                        item.setValue(val);
                                    }
                                }
                            });
                        });
                    }
                }
                else {
                    deprecate({ pkg:'Ext.form.CheckboxGroup', member:'setValue', 
                        msg:'The setValue method no longer accepts a two-argument form. Use the new single Object form instead.'});
                        
                    f = me.getBox(id);
                    if (f) {
                        f.setValue(value);
                    }
                }
    
                return me;
            },
    
            // private
            setValueForItem : function(val){
                deprecate({ pkg:'Ext.form.CheckboxGroup', member:'setValueForItem'});
                var me = this;
                val = String(val).split(',');
                me.batchChanges(function() {
                    me.eachBox(function(item) {
                        if (val.indexOf(item.inputValue) > -1) {
                            item.setValue(true);
                        }
                    });
                });
            },
    
            // private
            getBox : function(id){
                deprecate({ pkg:'Ext.form.CheckboxGroup', member:'getBox'});
                var box = null;
                this.eachBox(function(f) {
                    if (id == f || f.dataIndex == id || f.id == id || f.getName() == id) {
                        box = f;
                        return false;
                    }
                });
                return box;
            }
        });
    }
})();
*/
</script>

<!-- -->

<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/ux/ux-all.js">
        </script>

<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/local/ext-lang-zh_CN.js"  charset="utf-8">
        </script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('JS')->value;?>
jquery/jquery.min.js">
        </script>
<script type="text/javascript">

	//Ext.Compat.showErrors = true;
	Ext.Loader.setConfig({
		enabled: true
	});
	Ext.Loader.setPath('Ext.ux', '<?php echo $_smarty_tpl->getVariable('JS')->value;?>
extjs/ux');

	Ext.require([
				'*',
				'Ext.grid.*',
				'Ext.data.*',
				'Ext.form.*',
				'Ext.util.*',
				'Ext.toolbar.Paging',
				'Ext.tab.*',
				'Ext.Window',
				'Ext.window.*',
				'Ext.ModelManager',
				'Ext.tip.QuickTipManager',			
				'Ext.Viewport',
				'Ext.ux.TabCloseMenu',
				'Ext.layout.container.Border',				
				'Ext.selection.CheckboxModel',
				'Ext.ux.*',
				'Ext.ux.form.MultiSelect',
    			'Ext.ux.form.ItemSelector',
				'Ext.chart.*', 
				'Ext.fx.target.Sprite', 
				'Ext.layout.container.Fit'
			]);
	Ext.define('ComboModel', {
		    extend: 'Ext.data.Model',
		    fields: [{ name: 'id'}, { name: 'text'}]
	});
        Ext.onReady(function(){
                        Ext.ux.HideMsg();
                                               });
</script>
